package com.yuyou.tas.service.api.report.service;

import com.yuyou.tas.service.api.report.entity.ExamModel;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "tas-report-service")
@RequestMapping(value = "/examModelAPI")
public interface ExamModelAPI {



	/**
	 * 根据学期查找部分试卷
	 * @param trimesterId
	 * @return
	 */
	@RequestMapping(value = "/selectModelByTrimester", method = RequestMethod.POST)
	List<ExamModel> selectModelByTrimester(@RequestParam("trimesterId") Long trimesterId);

	/**
	 * 根据班形查找部分试卷
	 * @param levelId
	 * @return
	 */
	@RequestMapping(value = "/selectModelByLevel", method = RequestMethod.POST)
	List<ExamModel> selectModelByLevel(@RequestParam("levelId") Long levelId);

	/**
	 * 根据班级Id删除试卷范围
	 * @param lessonClassId
	 * @param authOrganizationId
	 * @return
	 */
	@RequestMapping(value = "/deleteByClassId", method = RequestMethod.POST)
	ResBoolSimpleInfo<String> deleteByClassId(@RequestParam("lessonClassId") Long lessonClassId, @RequestParam("authOrganizationId") Long authOrganizationId);

}
